package com.laogao.logback;

import ch.qos.logback.classic.spi.ILoggingEvent;
import ch.qos.logback.core.AppenderBase;
import com.laogao.service.LogWebSocketService;


public class WebSocketLogAppender extends AppenderBase<ILoggingEvent> {

    @Override
    protected void append(ILoggingEvent event) {
        LogWebSocketService.broadcast(event);
    }
}
